package ecmnext.business.event;

/***************************************************************/
/*                     SOFTWARE SECTION                        */
/***************************************************************/
/*
 * <p>Name: ECMNext</p>
 * <p>Description: Simulation of the platform of trading Software</p>
 * <p>Licence: General Public License</p>
 * <p>Organisation: EC Marseille</p>
 * <p>Persons involved in the project : groupe Plateforme de Trading</p>
 * <p>Current version: 1.0</p>
 */

/***************************************************************/
/*                       IMPORT SECTION                        */
/***************************************************************/

import ecmnext.business.*;

/***************************************************************/
/*              PlayerTypeEvent CLASS SECTION                  */
/***************************************************************/

/**
 * <p>Title: PlayerTypeEvent</p>
 * <p>Description : </p>
 * @author Xuewen YANG ET Antoine COUDERC
 * @version 1.0
 */

public class PlayerTypeEvent {

  public static final int PLAYER_REMOVED = 0;
  public static final int PLAYER_ADDED = 1;
  public static final int OPERATOR_GRANTED = 2;
  public static final int OPERATOR_DENIED = 3;

  private int event;
  private PlayerType playerType;
  private Operator operator;

  public Operator getOperator() {
    return this.operator;
  }

  public int getEvent() {
    return event;
  }

  public PlayerType getPlayerType() {
    return playerType;
  }

  public PlayerTypeEvent(PlayerType playerType, int event, Operator oper) {
    this.playerType = playerType;
    this.event = event;
    this.operator = oper;
  }
}
